package com.gxuwz.ssy.controller;

import com.gxuwz.ssy.service.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller("/api")
public class UserController {
    @Autowired
    UserServiceImpl userService;

    @RequestMapping("/check")
    public Integer check(@RequestParam("username") String username,@RequestParam("password") String password){
        return userService.login(username,password);
    }



    @RequestMapping("/register")
    public String register(){
        return "register";
    }


}
